package com.coderxq.blog.web.entity.pojo;

import cn.hutool.json.JSONSupport;
import lombok.Data;
import org.springframework.data.annotation.Id;

import javax.validation.constraints.NotEmpty;
import java.time.LocalDateTime;

/**
 * @Author: lijingming
 * @Date: 2025/2/13
 * @Description:
 **/
@Data
public class Menu extends JSONSupport {
    @Id
    private String menuId;

    @NotEmpty(message = "菜单名称不能为空")
    private String menuName;

    private String  parentId;

    @NotEmpty(message = "路由名称不能为空")
    private String routePath;

    @NotEmpty(message = "菜单类型不能为空 0菜单目录 1菜单项")
    private Integer type;

    private Integer level;

    private String icon;

    private int isForbidden;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    private int isDelete;

}
